package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchAppServiceApi;
import com.thb.pay.api.merchant.vo.req.MchAppPageReq;
import com.thb.pay.api.merchant.vo.req.MchAppReq;
import com.thb.pay.api.merchant.vo.resp.MchAppVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class MchAppServiceApiFallbackFactory implements FallbackFactory<MchAppServiceApi> {


    @Override
    public MchAppServiceApi create(Throwable throwable) {
        return new MchAppServiceApi() {
            @Override
            public PageResult<MchAppVo> findPage(MchAppPageReq pageReq) {
                return null;
            }

            @Override
            public List<MchAppVo> findAllList() {
                return null;
            }

            @Override
            public List<MchAppVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public MchAppVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchAppReq mchAppReq) {

            }

            @Override
            public void update(MchAppReq mchAppReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}